package com.erp.erp_entitys.ProductLog;

import com.erp.utils.DateUtils;

import java.io.Serializable;

/**
 * @author 
 * 
 */
public class ProductLogVoEntity implements Serializable {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 产品编码
     */
    private String productCode;

    /**
     * 操作类型
     */
    private String type;

    /**
     * 操作员
     */
    private String optioner;

    /**
     * 操作时间
     */
    private String time;

    /**
     * 操作内容
     */
    private String content;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOptioner() {
        return optioner;
    }

    public void setOptioner(String optioner) {
        this.optioner = optioner;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

   public ProductLogVoEntity conver(ProductLogEntity pe){
       ProductLogVoEntity vo=new ProductLogVoEntity();
       vo.setContent(pe.getContent());
       vo.setId(pe.getId());
       vo.setOptioner(pe.getOptioner());
       vo.setProductCode(pe.getProductCode());
       vo.setTime(DateUtils.format(pe.getTime(),DateUtils.DATE_TIME_PATTERN));
       vo.setType(pe.getType());
       return vo;
   }
}